package com.k8s.hello.web;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.ZonedDateTime;
import java.util.Map;

@RestController
@RequestMapping("/time")
public class TimeResource {

    @GetMapping("/")
    public ResponseEntity<String> getConfig(){
        return ResponseEntity.ok(ZonedDateTime.now().toString());
    }
}
